home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / windows / virc96_1.zip / VIRCDDE.TXT < prev   
Text File  |  1996-05-19  |  1KB  |  44 lines

  1. Visual IRC '96's DDE interface (0.05 and above)
  2. ===============================================
  3.  
  4. ViRC '96 currently supports two types of DDE requests: IRC_Query and
  5. IRC_Execute. IRC_Query is used to query an internal variable, such as
  6. your nickname, username or hostname, and IRC_Execute causes ViRC '96 to
  7. execute an IRC command as if it were typed at the keyboard. Thus
  8. "front-end" programs can be written to control ViRC '96. This is, of
  9. course, a very powerful capability.
  10.  
  11. Usage examples
  12. --------------
  13.  
  14. The examples provided are written in Visual Basic, however, the technique
  15. is very simple and is easy to do in Delphi or C++ too.
  16.  
  17. IRC_Query
  18. ---------
  19.  
  20. Create a label on a VB form and call it txDDE. Then execute the following
  21. code:
  22.  
  23.   txDDE.LinkTopic = "VIRC96|IRC_Query"
  24.   txDDE.LinkItem = "Nick"
  25.   txDDE.LinkMode = 1
  26.   txDDE.LinkPoke
  27.  
  28. This will set the label's caption to your current ViRC '96 nickname.
  29. You may also set LinkItem to "User", "Host", or "Gecos", to return those
  30. strings, respectively.
  31.  
  32. IRC_Execute
  33. -----------
  34.  
  35. Causes ViRC '96 to execute an IRC command, as if it were entered at the
  36. keyboard. Example:
  37.  
  38.   txDDE.LinkTopic = "VIRC96|IRC_Execute"
  39.   txDDE.LinkMode = 2
  40.   txDDE.LinkExecute "/join #quake"
  41.  
  42. This will make ViRC '96 join the channel #quake. Any valid IRC command
  43. may be placed in the LinkExecute field.
  44.